<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
    <div class="panel panel-default">
    <div class="panel-body">
    <div class="col-sm-12">
        <div class="row ">
            <div class="col-sm-2 col-sm-offset-10">
                <button class="btn btn-block btn-info" ng-click="add()">添加活动</button> 
            </div>
    
        </div>
    
    </div>
    </div>
    </div>
    <!-- searchArea -->
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
                <thead>
                    <tr>
                        <th class="text-center" style="width:25%">标题</th>
                        <th class="text-center" style="width:10%">头图</th>
                        <th class="text-center" style="width:15%">兑换码需点赞人数</th>
                        <th class="text-center" style="width:20%">允许最大参与次数 </th>
                        <th class="text-center" style="width:10%">开启/关闭</th>
                        <th class="text-center" style="width:10%">状态 </th>
                        <th class="text-center" style="width:10%">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in objs">
                        <td class="text-center" style="width:25%; text-align:center;vertical-align:middle;">{{obj.title}}</td>
                        <td class="text-center" style="width:10%; text-align:center;vertical-align:middle;">
                            <img ng-src="{{obj.img}}" class="img-responsive;text-center" style="height:50px;">
                        </td>
                        <td class="text-center" style="width:15%;text-align:center;vertical-align:middle;">{{obj.need_num}}</td>
                        <td class="text-center" style="width:20%;text-align:center;vertical-align:middle;">{{obj.top_num}}</td>
                        <td class="" style="width:10%;vertical-align:middle;">
                            <label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:25%">
                                <input type="checkbox" ng-model="obj.isSelected" ng-change="onChange(obj.isSelected, obj.id)">
                                <i></i>
                            </label>
                        </td>  
                        <td class="text-center" style="width:10%;text-align:center;vertical-align:middle;">
                            <p class="" ng-show="obj.state == '0'">已开启</p>
                            <p class="" ng-show="obj.state == '1'">已关闭</p>
                        </td>        
                        <td class="text-center" style="width:10%;text-align:center;vertical-align:middle;">
                            <a ng-click="edit(obj.id)" class="btn btn-info btn-xs">编辑</a>
                            <a ng-click="delete(obj.id)" class="btn btn-danger btn-xs">删除</a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="text-right">
                 <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                    first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                    class="m-t-none m-b">
                </pagination>
            </div>
        </div>
    </div>
    
    </div>
            
    